package testSpring;

import com.entity.Equip;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 简答
 */
public class test5 {
    @Test
    public void testGame(){
        ApplicationContext context=new ClassPathXmlApplicationContext("applicationContext.xml");
        Equip lanMoRing= (Equip) context.getBean("lanMoRing");
        System.out.println(lanMoRing.getName()+"[速度增效："+lanMoRing.getSpeedPlus()+";攻击增效："+lanMoRing.getAttackPlus()+";防御增效："+lanMoRing.getDefencePlus());
    }
}
